package com.example.haoqisystem.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "更新网页通知")
public class UpdateWebNoticeRequest {
    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "课程id")
    private Long lectureId;

    @ApiModelProperty(value = "课程名")
    private String lectureName;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "开课时间")
    private Date beginTime;

    @ApiModelProperty(value = "开课地点")
    private String lecturePlace;
}
